Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Pagination numerical by default #2454

Merged
merged 3 commits into from
Jul 8, 2024
Merged

Conversation

tomlovesgithub
Copy link
Contributor

What's included?

do-over of old branch with merge issues.

Alphabetical pagination on the stat-con report page was causing confusion with the stat-con download.
I have made the pagination numerical by default so this page should always load any results, reducing confusion.

Who should test?

✅ Product owner
✅ Developers
✅ UTG

How to test?

visit stat con page (exercise >> reports >> statutory-consultation)
ensure pagination is numerical on initial load.

Risk - how likely is this to impact other areas?

🟢 No risk - this is a self-contained piece of work


PREVIEW:DEVELOP
can be OFF, DEVELOP or STAGING

Copy link

github-actions bot commented Jun 21, 2024

Visit the preview URL for this PR (updated for commit cdc3a6a):

https://jac-admin-develop--pr2454-ts-242-stat-con-repo-wgvowlxo.web.app

(expires Sun, 21 Jul 2024 16:34:33 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 4e92cf51659207b0ae3509dc5c40edde50edfec0

@@ -156,7 +158,9 @@ export default {
where('status', 'in', statuses)
);
params.orderBy = 'candidate.fullName';
firestoreRef = await tableQuery(this.applicationRecords, firestoreRef, params);
const res = await tableAsyncQuery(this.applicationRecords, firestoreRef, params);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you pass null as the 4th parameter, please? It will be like:
const res = await tableAsyncQuery(this.applicationRecords, firestoreRef, params, null);

@tomlovesgithub tomlovesgithub merged commit 849a504 into main Jul 8, 2024
6 checks passed
@tomlovesgithub tomlovesgithub deleted the TS/242-stat-con-report branch July 8, 2024 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants